package cn.yyh.feign;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import cn.yyh.feign.service.FeignService;

@Component
public class TestRunner implements CommandLineRunner{

	@Autowired
	FeignService feignService;
	
	@Override
	public void run(String... args) throws Exception {
		System.out.println("===============================================");
		System.out.println("===============================================");
		System.out.println(feignService.add(10, 20));
		System.out.println("===============================================");
		System.out.println("===============================================");
	}

}
